# https://gitee.com/yueyinqiu5990/tj12413601/blob/master/assignment1/question2/integration_problem.py
import typing


class IntegrationProblem1d:
    def __init__(self,
                 integrand: typing.Callable[[float], float],
                 lower_limit: float,
                 upper_limit: float):
        self._integrand = integrand
        self._lower_limit = lower_limit
        self._upper_limit = upper_limit

    def integrand(self):
        return self._integrand

    def lower_limit(self):
        return self._lower_limit

    def upper_limit(self):
        return self._upper_limit
